<div class="row">
    <form action="/p/{{post._id}}/comment" method="post" class="form-horizontal" role="form">
        <div class="form-group">
            <legend>留言</legend>
        </div>
        {{#if user}}
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name" value="{{user.name}}" placeholder="">
            </div>
        </div>
        <div class="form-group">
            <label for="email" class="col-sm-2 control-label">邮箱</label>
            <div class="col-sm-10">
                <input type="email" class="form-control" id="email" name="email" value="{{user.email}}" placeholder="">
            </div>
        </div>
        <div class="form-group">
            <label for="website" class="col-sm-2 control-label">网址</label>
            <div class="col-sm-10">
                <input type="url" class="form-control" id="website" name="website" value="http://localhost:3000/u/{{user.name}}"  placeholder="">
            </div>
        </div>
        {{else}}
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name" placeholder="">
            </div>
        </div>
        <div class="form-group">
            <label for="email" class="col-sm-2 control-label">邮箱</label>
            <div class="col-sm-10">
                <input type="email" class="form-control" id="email" name="email" placeholder="">
            </div>
        </div>
        <div class="form-group">
            <label for="website" class="col-sm-2 control-label">网址</label>
            <div class="col-sm-10">
                <input type="url" class="form-control" id="website" name="website" value="http://" placeholder="">
            </div>
        </div>
        {{/if}}
        <div class="form-group">
            <label for="content" class="col-sm-2 control-label"></label>
            <div class="col-sm-10">
                <textarea class="form-control" id="content" name="content" placeholder="留下你的话语。。。" rows="5" cols="80" required="required"></textarea>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-10 col-sm-offset-2">
                <button type="submit" class="btn btn-default">留言</button>
            </div>
        </div>
    </form>
</div>